﻿<%@ Page Title="" Language="C#" MasterPageFile="~/BasicBase/BasicBase.master" AutoEventWireup="true"
    StylesheetTheme="Content" CodeFile="FireProjectList.aspx.cs" Inherits="BasicBase_FireProject_FireProjectList" %>

<%@ Register Src="../../UserContral/ListPageContral.ascx" TagName="ListPageContral"
    TagPrefix="uc1" %>
<%@ Register Src="UCDepartmentISEmp.ascx" TagName="UCDepartmentISEmp" TagPrefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:UpdatePanel runat="server" ID="udp">
        <Triggers>
            <asp:PostBackTrigger ControlID="lkbQurey" />
        </Triggers>
        <ContentTemplate>
            <div runat="server" id="topmenu">
                <table cellspacing="0" cellpadding="0" width="100%" class="intable">
                    <caption>
                        <span>灭火救援预案查询条件</span></caption>
                    <tr>
                        <td class="title" style="width: 80px">
                            所属单位：
                        </td>
                        <td>
                            <uc2:UCDepartmentISEmp ID="UCDepartmentISEmp1" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td class="title">
                            预案类别：
                        </td>
                        <td>
                            <asp:DropDownList runat="server" ID="ddlTypeID" AutoPostBack="True" OnSelectedIndexChanged="ddlTypeID_SelectedIndexChanged"
                                Width="406">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td class="title">
                            预案类型：
                        </td>
                        <td>
                            <asp:DropDownList runat="server" ID="ddlClassID" Width="406">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td class="title">
                            预案名称：
                        </td>
                        <td>
                            <asp:TextBox ID="ProjectName" runat="server" Width="400px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                        </td>
                        <td>
                            <ul class="topmenu">
                                <li>
                                    <asp:LinkButton runat="server" ID="lkbQurey" Text="查询" OnClick="lbtQurey_Click"></asp:LinkButton>
                                </li>
                            </ul>
                        </td>
                    </tr>
                </table>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <div class="clear">
    </div>
    <div>
        <asp:GridView ID="GV" runat="server" AutoGenerateColumns="False" DataKeyNames="ProjectID"
            Caption="<span>灭火救援预案列表</span>" OnRowDataBound="gvChemical_RowDataBound" PageSize="15"
            OnRowCommand="gvChemical_RowCommand">
            <Columns>
                <asp:TemplateField>
                    <HeaderStyle HorizontalAlign="Left" Width="5%" />
                    <ItemTemplate>
                        <asp:Label runat="server" ID="lblID"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="预案名称">
                    <ItemTemplate>
                        <asp:Label ID="lbProjectName" runat="server" Text='<%# Bind("ProjectName") %>' Font-Bold="true"></asp:Label><br />
                        <asp:Label runat="server" ID="lblDepartment"></asp:Label>
                        <asp:Label runat="server" ID="lbUpdateTime" Text='<%# Bind("UpdateTime") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="类别类型">
                    <ItemTemplate>
                        <asp:Label runat="server" ID="lblType"></asp:Label><br />
                        <asp:Label runat="server" ID="lblClass"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="编辑">
                    <ItemTemplate>
                        <a href="FireProjectNew.aspx?ID=<%# Eval("ProjectID") %>">
                            <img alt="编辑" src="../../Images/Edit.gif" /></abbr></a>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" Width="25" />
                    <HeaderStyle HorizontalAlign="Center" Width="25" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="删除">
                    <ItemTemplate>
                        <asp:ImageButton runat="server" CommandArgument='<%# Eval("ProjectID") %>' ID="lkbDel"
                            CommandName="Del" ImageUrl="~/Images/delete.gif" OnClientClick="return confirm('是否真的删除?')">
                        </asp:ImageButton>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" Width="25" />
                    <HeaderStyle HorizontalAlign="Center" Width="25" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="查看">
                    <ItemTemplate>
                        <a href="FireProjectView1.aspx?id=<%# Eval("ProjectID") %>">
                            <img alt="查看" src="../../Images/UserView.gif" /></a>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" Width="25" />
                    <HeaderStyle HorizontalAlign="Center" Width="25" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="演练">
                    <ItemTemplate>
                        <a href="../Drilling/DrillingNoteNew.aspx?ProjectID=<%#Eval("ProjectID") %>">
                            <img src="../../Images/watermark.gif" alt="演练记录" />
                        </a>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <RowStyle HorizontalAlign="Left" />
            <HeaderStyle HorizontalAlign="Left" />
        </asp:GridView>
        <uc1:ListPageContral ID="ListPageContral1" runat="server" PageSize="15" OnPageSizeChange="ListPageContral1_PageSizeChange" />
        <br />
        <asp:Label runat="server" ID="lblwhere" Visible="False"></asp:Label><div class="prompt">
            <asp:Label ID="Prompt" runat="server"></asp:Label></div>
    </div>
</asp:Content>
